/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.ems.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.config.Global;
import com.thinkgem.jeesite.common.constant.Constant;
import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 报名人Entity
 * @author zad
 * @version 2018-01-25
 */
public class EmsUser extends DataEntity<EmsUser> {
	
	private static final long serialVersionUID = 1L;
	private String loginName;		// 登录名
	private String password;		// 密码
	private String passwordCfm;	 // 确认密码
	private String name;		// 姓名
	private String mobile;		// 手机号码
	private String email;		// 电子邮箱
	private String address;		// 地址
	private String status;		// 是否启用
	// private String cartId;		// 购物车
	
	public EmsUser() {
		super();
		this.status = Global.YES;
	}

	public EmsUser(String id){
		super(id);
	}

	@Length(min=1, max=64, message="登录名长度必须介于 1 和 64 之间")
	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	
	@Length(min=1, max=64, message="密码长度必须介于 1 和 64 之间")
	public String getPassword() {
		return password;
	}
	
	@Length(min=1, max=64, message="密码长度必须介于 1 和 64 之间")
	public String getPasswordCfm() {
		return passwordCfm;
	}

	public void setPasswordCfm(String passwordCfm) {
		this.passwordCfm = passwordCfm;
	}

	public void setPassword(String password) {
		this.password = password;
	}
	
	@Length(min=1, max=64, message="姓名长度必须介于 1 和 64 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	@Length(min=1, max=16, message="手机号码长度必须介于 1 和 16 之间")
	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	
	@Length(min=0, max=64, message="电子邮箱长度必须介于 0 和 64 之间")
	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}
	
	@Length(min=0, max=256, message="地址长度必须介于 0 和 256 之间")
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}
	
	@Length(min=0, max=2, message="是否启用长度必须介于 0 和 2 之间")
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
}